const state = {
  isLogin: false,
  token: '',
  loginRedirect: false
}
const mutations = {
  setTokenAction (state, token) {
    if (token) {
      state.isLogin = true
      state.token = token
    } else {
      state.isLogin = false
      state.token = ''
    }
  },
  setLoginRedirect (state, route) {
    state.loginRedirect = route
  }
}

const actions = {
  setToken (content, data) {

  }
}

export default {
  namespaced: true,
  state,
  actions,
  mutations
}
